using System;
using System.Collections.Generic;
using System.Text;

namespace MacomberMap.Common.Events
{
    /// <summary>
    /// This class holds information on ID mismatches
    /// </summary>
    public class MM_Event_IDMismatch: MM_Event
    {
        /// <summary>
        /// The stored ID
        /// </summary>
        public String Stored;

        /// <summary>
        /// The attempted ID
        /// </summary>
        public String Attempted;

        /// <summary>
        /// Create a new instance of an ID mismatch placeholder
        /// </summary>
        /// <param name="Stored"></param>
        /// <param name="Attempted"></param>
        public MM_Event_IDMismatch(String Stored, String Attempted)
        {
            this.Stored = Stored;
            this.Attempted = Attempted;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="OutMenu"></param>
        public override void AddMenuItems(System.Windows.Forms.ContextMenuStrip OutMenu)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override System.Windows.Forms.ListViewItem BuildListViewItem()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="OutParent"></param>
        public override void DisplayDetails(System.Windows.Forms.Control OutParent)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="lvItem"></param>
        public override void UpdateListViewItem(System.Windows.Forms.ListViewItem lvItem)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        /// <summary>
        /// Compare two ID mismatches
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override int CompareTo(object obj)
        {
            return Attempted.CompareTo((obj as MM_Event_IDMismatch).Attempted);    
        
        }
    }
}
